﻿using SqlSugar;
using System;
using System.Linq;
using System.Text;

namespace _RobotInspection.Entities
{
    ///<summary>
    ///点检计划表
    ///</summary>
    public partial class inspection_plans
    {
        public inspection_plans()
        {

            this.is_active = Convert.ToByte("1");
            this.created_at = DateTime.Now;
            this.updated_at = DateTime.Now;
            this.is_holiday = Convert.ToInt32("1");

        }
        /// <summary>
        /// Desc:计划ID
        /// Default:
        /// Nullable:False
        /// </summary>    
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long id { get; set; }

        /// <summary>
        /// Desc:计划名称
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string plan_name { get; set; }

        /// <summary>
        /// Desc:机组
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string unit { get; set; }

        /// <summary>
        /// Desc:主题描述
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string describe { get; set; }

        /// <summary>
        /// Desc:计划类型：1-日点检，2-周点检，3-月点检，4-一次性点检
        /// Default:
        /// Nullable:False
        /// </summary>           
        public byte plan_type { get; set; }

        /// <summary>
        /// Desc:具体周期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string specific_period { get; set; }

        /// <summary>
        /// Desc:频率值（如：每天1次）
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? frequency_value { get; set; }

        /// <summary>
        /// Desc:计划开始日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? start_date { get; set; }

        /// <summary>
        /// Desc:计划结束日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? end_date { get; set; }

        /// <summary>
        /// Desc:是否启用：1-启用，0-停用
        /// Default:1
        /// Nullable:True
        /// </summary>           
        public byte? is_active { get; set; }

        /// <summary>
        /// Desc:创建人ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? created_by { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:CURRENT_TIMESTAMP
        /// Nullable:True
        /// </summary>           
        public DateTime? created_at { get; set; }

        /// <summary>
        /// Desc:更新时间
        /// Default:CURRENT_TIMESTAMP
        /// Nullable:True
        /// </summary>           
        public DateTime? updated_at { get; set; }

        /// <summary>
        /// Desc:是否跳过节假日默认1,0不跳
        /// Default:1
        /// Nullable:False
        /// </summary>           
        public int is_holiday { get; set; }

    }
}
